spring:
  shardingsphere:
    datasource:
      names: ds
      ds:
        type: com.alibaba.druid.pool.DruidDataSource
        driver-class-name: com.mysql.cj.jdbc.Driver
        url: jdbc:mysql://localhost:3306/test?serverTimezone=UTC
        username: root
        password: 123456
    sharding:
      tables:
        # 表名
        t_order:
          actual-data-nodes: ds.t_order_$->{0..1}
          table-strategy:
            inline:
              sharding-column: id
              algorithm-expression: t_order_$->{id % 2}
          key-generator:
            column: id
            type: SNOWFLAKE
#            props:
#              worker:
#                id:123

      binding-tables: t_order
#      binding-tables: t_order
#      broadcast-tables:
#  datasource:
#    type: com.alibaba.druid.pool.DruidDataSource
#    driver-class-name: com.mysql.cj.jdbc.Driver
#    url: jdbc:mysql://localhost:3306/test?serverTimezone=UTC
#    username: root
#    password: 123456

#logging:
#  level:
#    cn:
#      com:
#        simple:
#          learning:
#            mybatisplus:
#              mapper: debug
    prop:
      sql:
        show: true
